package com.example.website.service.impl;

import com.example.website.bean.NewsInfor;
import com.example.website.service.NewsInforService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
//import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
//@Transactional(readOnly = true, rollbackFor = Exception.class)
public class NewsInforImpl implements NewsInforService {

//    @Autowired
//    public NewsInforMapper newsInforMapper;

//    @Override
//    @Transactional(readOnly = false, rollbackFor = Exception.class)
//    public int deleteByPrimaryKey(Long id) {
//        return 0;
//    }
//
//    @Override
//    @Transactional(readOnly = false, rollbackFor = Exception.class)
//    public int insert(NewsInfor record) {
//        return 0;
//    }
//
//    @Override
//    @Transactional(readOnly = false, rollbackFor = Exception.class)
//    public int insertSelective(NewsInfor record) {
//        return 0;
//    }
//
//    @Override
//    public List<NewsInfor> getNewsList(BrushUtils brushUtils) {
//        PageHelper.startPage(brushUtils.getPagination());
//        List<NewsInfor> list = newsInforMapper.getNewsList(brushUtils);
//        return list;
//    }

    @Override
    public NewsInfor getSpareOne() {
        return  null;
//        return newsInforMapper.getSpareOne();
    }
}
